package com.szh.htmltopdf.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.szh.htmltopdf.pojo.FamilyMembers;
import lombok.*;

import java.util.List;

@Getter
@Setter
@ToString
@TableName(value = "year",autoResultMap = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class YearModel {
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;
    private String old;
    @TableField(value = "family_members",typeHandler = FastjsonTypeHandler.class)
    private List<FamilyMembers> familyMembers;
    private Long userId;
}
